from sqlalchemy import Column
from sqlalchemy.sql.sqltypes import Integer, String, Text, TIMESTAMP
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

class Investtree(Base):
    __tablename__ = "TYC_INVESTTREE"
    CHILDREN	= Column(Text)
    ID	= Column(Integer)
    PID	= Column(String(100))
    LABLE	= Column(String(20))
    NAME	= Column(String(255))
    CREDITCODE	= Column(String(50))
    REGSTATUS	= Column(String(50))
    OPEN	= Column(String(6))
    PERCENT	= Column(Integer)

    ENTNAME = Column(String(100))
    PRIPID = Column(String(36))
    REGNO = Column(String(50))
    UNISCID = Column(String(18))
    CREATE_TIME = Column(TIMESTAMP)
    UPDATE_TIME = Column(TIMESTAMP)